
import * as TYPE from './type.js'

export default {
  [TYPE.MENUS](state,playload) {
    Object.assign(state, {
      menus:playload.menus,
    });
  },
  [TYPE.SIMPLEUSER](state,playload) {
    Object.assign(state, {
      simpleUser:playload.simpleUser,
    });
  },
  [TYPE.ACUSER](state,playload) {
    Object.assign(state, {
      acUser:playload.list,
      acUser_total:playload.total,
      acUser_current_page:playload.currentPage,
      acUser_page_size:playload.pageSize,
    });
  },
  [TYPE.ACROLE](state,playload) {
    Object.assign(state, {
      acRole:playload.list,
      acRole_total:playload.total,
      acRole_current_page:playload.currentPage,
      acRole_page_size:playload.pageSize,
    });
  },
  [TYPE.ACMENUS](state,playload) {
    Object.assign(state, {
      acMenus:playload.list,
      acMenus_total:playload.total,
      acMenus_current_page:playload.currentPage,
      acMenus_page_size:playload.pageSize,
    });
  }
}
